package com.example.administrator.myapplication;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.example.administrator.myapplication.body.bodyActivity;
import com.example.administrator.myapplication.flexibility.flexibilityActivity;
import com.example.administrator.myapplication.heart.heartActivity;
import com.example.administrator.myapplication.muscle.muscleActivity;


public class HomeActivity extends AppCompatActivity {

    private ImageView imgHeart;
    private ImageView imgMuscle;
    private ImageView imgFlxibility;
    private ImageView imgBody;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);

        imgHeart = (ImageView) findViewById(R.id.main_img_heart);
        imgMuscle = (ImageView) findViewById(R.id.main_img_muscle);
        imgFlxibility = (ImageView) findViewById(R.id.main_img_flex);
        imgBody = (ImageView) findViewById(R.id.main_img_body);

        imgHeart.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(HomeActivity.this, heartActivity.class);
                startActivity(intent);

            }
        });
        imgMuscle.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(HomeActivity.this, muscleActivity.class);
                startActivity(intent);
            }
        });
        imgFlxibility.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(HomeActivity.this, flexibilityActivity.class);
                startActivity(intent);
            }
        });
        imgBody.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(HomeActivity.this, bodyActivity.class);
                startActivity(intent);
            }
        });


    }
}
